import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from './store'

// 引入UI框架
import Vant from 'vant'
// 引入vant的css文件
import 'vant/lib/index.css'

//引入重置样式
import "./assets/css/reset.css";
// 引入rem
import "./assets/js/rem.js";
// 引入矢量图标
import "./assets/font/iconfont.css";

// 注册vant
import "./utils/vant";

// 调用UI框架
Vue.use(Vant)

// 引入自定义全局组件
import gCom from "./common";
import gFilter from "./filters";
// 调用自定义的全局组件
for (let i in gCom) {
  Vue.component(i, gCom[i]);
}
for (let i in gFilter) {
  Vue.filter(i, gFilter[i]);
}

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
